package com.vhall.component.entity.exam.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author song.dong
 * @date 2021-07-15 15:51
 */
@Data
public class ExamAnswersDTO implements Serializable {

    @JsonProperty(value = "answer_id")
    private Integer answerId;

    @JsonProperty(value = "exam_id")
    private Integer examId;

    @JsonProperty(value = "join_id")
    private Integer joinId;

    @JsonProperty(value = "room_id")
    private String roomId;

    @JsonProperty(value = "created_at")
    private LocalDateTime createdAt;

    @JsonProperty(value = "updated_at")
    private LocalDateTime updatedAt;

    @JsonProperty(value = "account_id")
    private Integer accountId;

    @JsonProperty(value = "elect_score")
    private Integer electScore;

    @JsonProperty(value = "answerer_score")
    private Integer answererScore;

    @JsonProperty(value = "is_graded")
    private Integer isGraded;

    @JsonProperty(value = "graded_mark")
    private String gradedMark;

    @JsonProperty(value = "start_time")
    private Integer startTime;

    @JsonProperty(value = "end_time")
    private Integer endTime;

    private String extend;

    @JsonProperty(value = "operator_account_id")
    private Integer operatorAccountId;

    @JsonProperty(value = "operator_nickname")
    private String operatorNickname;

    @JsonProperty(value = "nick_name")
    private String nickname;

    @JsonProperty(value = "role_name")
    private String roleName;

    @JsonProperty(value = "is_answered_exam")
    private Integer isAnsweredExam;

    private Integer number;

    @JsonProperty("total_score")
    private Integer totalScore;

    @JsonProperty("total_num")
    private Integer totalNum;

    @JsonProperty("right_num")
    private Integer rightNum;

    @JsonProperty("err_num")
    private Integer errNum;

    @JsonProperty("empty_num")
    private Integer emptyNum;

    private Integer accuracy;

    @JsonProperty("answer_time")
    private Long answerTime;
}
